﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace Yun.IM
{
    public class GetIMGroupModel
    {
        /// <summary>
        /// 群组ID
        /// </summary>
        [XmlElement("group_id")]
        public int GroupId { get; set; }

        /// <summary>
        /// 来源群组ID
        /// </summary>
        [XmlElement("sg_id")]
        public int SgId { get; set; }

        /// <summary>
        /// 群组名称
        /// </summary>
        [XmlElement("group_name")]
        public string GroupName { get; set; }

        /// <summary>
        /// 群组头像
        /// </summary>
        [XmlElement("avatar")]
        public string Avatar { get; set; }

        /// <summary>
        /// 群组成员
        /// </summary>
        [XmlArray("group_users")]
        [XmlArrayItem("group_user")]
        public List<IMGroupUsersModel> GroupUsers { get; set; }
    }
}
